package frontend.pages.worklog.daily;

import backend.model.worklog.WorkLog;
import frontend.model.worklog.WorkLogUIModel;
import frontend.components.other.UserInputCallableAction;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.Panel;

import java.util.List;

public class DailyWorkLogPanel extends Panel {

    public DailyWorkLogPanel(String id, WorkLogUIModel model, List<WorkLog> workLogList, boolean showDeleteButton, UserInputCallableAction onSaveAction) {
        super(id);

        Form<WorkLogUIModel> workLogForm = new DailyWorkLogForm("workLogForm", model, workLogList, showDeleteButton, onSaveAction);
        add(workLogForm);
    }
}
